.\" -*- nroff -*-
.TH cli 9 "$Date:$" "Linux DDI" "Kernel Functions"
.SH NAME
cli, sti \- disable/enable interrupts
.SH SYNOPSIS
.B #include  <asm/system.h>
.sp
.BI "extern void cli()"
.br
.BI "extern void sti()"
.SH DESCRIPTION
The
.B cli
function causes interrupts to be blocked on the host, so that
following critical code may run uninterrupted. The
.B sti
function enables interrupts again.
.PP
Although it is possible to use cli/sti pairs to protect critical code,
it is best to use
.B cli
with the
.B save_flags
macro. See
.B save_flags "(9)."
.SH "RETURN VALUE"
none
.SH AVAILABILITY
Linux 1.0+
.SH "SEE ALSO"
.BR save_flags "(9)"
.PP
.IR "include/asm-*/system.h"
.SH AUTHOR
Stephen Williams (steve@icarus.com)
.SH BUGS
The i386 ancestry of the names can be slightly confusing.
